// mock 一组假数据，进行用户注册
// 注册成功，需要返回给用户信息

const delay = (ms = 3000) =>
  new Promise((resolve) => {
    setTimeout(resolve, ms);
  });


// 注册接口
module.exports = app => {
  app.post('/api/register', (req, res) => {
    res.send({
      code: 0,
      msg: '注册成功',
      data: {
        username: 'password',
        userpassword: 1001,
      }
    })
  })
}

